package fwk;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SimpleRequestHandlerAdapter implements HandlerAdapter {

	@Override
	public ModelAndView processHandler(Controller controller,HttpServletRequest req,HttpServletResponse resp) throws Exception{
		if(controller==null){
			resp.setStatus(404);
			return null;
		}
		else
		return controller.handle(req, resp);
	}

}
